x <- rnorm(300, 3, 5)
x[ x < 0 ] <- 0 ## left censoring. Values below zero become zero
cens.mle(x, distr = "tobit")
x1 <- rpois(10000, 15)
x <- x1
x[x <= 10] <- 10
mean(x) ## simple Poisson
cens.mle(x, distr = "censpois")$lambda
Run the code above in your browser using DataLab